package com.validator;

import java.io.File;

import com.opensymphony.xwork2.validator.ValidationException;
import com.opensymphony.xwork2.validator.validators.FieldValidatorSupport;

public class IsSongUpload  extends FieldValidatorSupport{
	private File song_add;
	private String song_addFileName;
	@Override
	public void validate(Object o) throws ValidationException {
		Object objUploadFileName = getFieldValue(song_addFileName, o);
		String fieldName = getFieldName();
		File fieldValue = (File) getFieldValue(fieldName, o);
		if (fieldValue == null) {
			addFieldError(fieldName, o);
		}
	}
	public File getSong_add() {
		return song_add;
	}
	public void setSong_add(File song_add) {
		this.song_add = song_add;
	}
	public String getSong_addFileName() {
		return song_addFileName;
	}
	public void setSong_addFileName(String song_addFileName) {
		this.song_addFileName = song_addFileName;
	}

	
	
	

}
